import request from '@/utils/request'

const kBaseURL = 'http://101.34.88.117:8082'
// const kBaseURL = 'http://localhost:8082'

// 拉取合并excel
export function fetchList(query) {
  return request({
    url: '/excel/findCombine',
    baseURL: kBaseURL,
    method: 'post',
    params: query
  })
}

// 下载excel模板
export function fetchExcelTemplate(query) {
    return request({
      url: '/excel/generateTemplate',
      baseURL: kBaseURL,
      method: 'get',
      params: {}
    })
}

// 获取excel表格数据
export function fetchExcelData(query) {
    return request({
      url: '/excel/findAllAgreementRelation',
      baseURL: kBaseURL,
      method: 'get',
      params: {}
    })
}

// 获取试食问卷分析数据
export function fetchAnalysizeList(data) {
  return request({
    url: '/excel/calculateDiseasePercent',
    baseURL: kBaseURL,
    method: 'post',
    data
  })
}


  
  